//
//  TaskManagerListModel.h
//  LogisticsSupplier
//
//  Created by 吕晶 on 2021/3/19.
//  Copyright © 2021 吕晶. All rights reserved.
//

#import <Foundation/Foundation.h>
@class TaskManagerListAddressModel;
@class TaskManagerListAddressLocationModel;

NS_ASSUME_NONNULL_BEGIN

@interface TaskManagerListModel : NSObject

@property (nonatomic, copy) NSString *Id;//调度任务单id
@property (nonatomic, copy) NSString *sta_num;//任务单号
@property (nonatomic, copy) NSString *t_id;//3pl的id
@property (nonatomic, copy) NSString *source;//来源 1：提货计划 2：操作单
@property (nonatomic, copy) NSString *co_id;//合同ID
@property (nonatomic, copy) NSString *u_id;//计费条件id
@property (nonatomic, copy) NSString *price;//价格
@property (nonatomic, copy) NSString *settle_sty;//结算方式，默认合同
@property (nonatomic, copy) NSString *create_time;//创建时间
@property (nonatomic, copy) NSString *update_time;//抢单/接单时间
@property (nonatomic, copy) NSString *end_time;//到期时间
@property (nonatomic, copy) NSString *s_id;//供应商id
@property (nonatomic, copy) NSString *s_type;//供应商类型 1提货 2干线 3派送 4交货 5其他
@property (nonatomic, copy) NSString *jh_status;//计划列表中的分类 1：未受理 2：已受理 。只有在status = 11时，才会有此参数，默认为已受理
@property (nonatomic, copy) NSString *status;//1=分配待确认/待抢单（未受理）;2=分配成功/抢单成功（已受理）;3=驳回；4=提货出发；5=提货到达；6=送货出发；7=送货到达；8=签收；9=已完成；10=作废；11=计划
@property (nonatomic, copy) NSString *pick_type;//操作方式 1直运 2转运 3配载
@property (nonatomic, copy) NSString *dp_ids;//提货计划ids
@property (nonatomic, copy) NSString *o_id;//来源操作单，操作单ID，操作单与任务单是一对多的关系
@property (nonatomic, copy) NSString *ta_id;//调度--3pl任务单id
@property (nonatomic, copy) NSString *car_require;//车辆要求
@property (nonatomic, copy) NSString *wa_ids;//运单ids，英文逗号分隔
@property (nonatomic, copy) NSString *sort;//干线供应商 排序
@property (nonatomic, copy) NSString *isfinal;//是否最后一个供应商？1不是 2是
@property (nonatomic, copy) NSString *all_pnum;//件数
@property (nonatomic, copy) NSString *all_num;//数量
@property (nonatomic, copy) NSString *all_weight;//重量
@property (nonatomic, copy) NSString *all_volume;//体积
@property (nonatomic, copy) NSString *s_province;//出发-省
@property (nonatomic, copy) NSString *s_city;//出发-市（提货地）
@property (nonatomic, copy) NSString *r_province;//到达-省
@property (nonatomic, copy) NSString *r_city;//到达-市（送货地）
@property (nonatomic, copy) NSString *province;//
@property (nonatomic, copy) NSString *city;//
@property (nonatomic, copy) NSString *town;//
@property (nonatomic, copy) NSString *info;//
@property (nonatomic, copy) NSString *p_id;//关联id，上一个流程的id
@property (nonatomic, assign) int type;//驳回类型 1：我方驳回 2：司机驳回（status=3时才有）
@property (nonatomic, copy) NSString *t_name;//任务来源
@property (nonatomic, assign) int is_all_num;//是否货物都调度完成 1：否 2：是
@property (nonatomic, assign) int is_sta_type;//1：多车物流商任务单 2：单车物流商任务单（司机）
@property (nonatomic, assign) int is_stick;//任务单供应商顺序 1：第一棒 2：不是第一棒 默认不是第一棒  ==1时显示收货按钮
@property (nonatomic, assign) int is_loading;//是否装车完成 1：未完成 2：已完成
@property (nonatomic, assign) int is_receie;//是否收货完成 1：未完成 2：已完成
@property (nonatomic, assign) int is_fa;//是否显示价格 1：显示 2：不显示
@property (nonatomic, assign) int residue_num;//
@property (nonatomic, assign) int residue_pnum;//
@property (nonatomic, assign) CGFloat residue_weight;//
@property (nonatomic, assign) CGFloat residue_volume;//
@property (nonatomic, assign) int p_sta_id;//==0时显示回单返回
@property (nonatomic, assign) int is_plan;//1不是计划 2是计划

@property (nonatomic, strong) NSArray <TaskManagerListAddressModel *>*sup_address;//供应商仓库列表
@property (nonatomic, strong) NSArray <TaskManagerListAddressLocationModel *>*s_city_lng_lat;//出发地城市经纬度
@property (nonatomic, strong) NSArray <TaskManagerListAddressLocationModel *>*r_city_lng_lat;//目的地城市经纬度

@property (nonatomic, copy) NSString *reject_remarks;//驳回原因

@end

@interface TaskManagerListAddressModel : NSObject

@property (nonatomic, copy) NSString *Id;//仓库id
@property (nonatomic, copy) NSString *province;//省
@property (nonatomic, copy) NSString *city;//市
@property (nonatomic, copy) NSString *town;//区
@property (nonatomic, copy) NSString *info;//详细地址
@property (nonatomic, copy) NSString *create_time;//创建时间
@property (nonatomic, copy) NSString *update_time;//更新时间
@property (nonatomic, copy) NSString *s_id;//供应商ID
@property (nonatomic, copy) NSString *ths_id;//3pl的供应商ID
@property (nonatomic, copy) NSString *t_id;//3pl ID
@property (nonatomic, copy) NSString *tw_id;//3pl 员工ID

@end

@interface TaskManagerListAddressLocationModel : NSObject

@property (nonatomic, copy) NSString *lat;
@property (nonatomic, copy) NSString *lng;
@property (nonatomic, copy) NSString *name;

@end

NS_ASSUME_NONNULL_END
